/**
 * 
 */
package com.nari.interfaces.decipher.gprs;


/**
 * 帧数据常量
 * @author Xiaopeng
 * @date 2013-11-6
 */
public class FrameEntityConstants {
/** ------------------------指令下发协议帧/数据包协议头------------------------------ */
	//字节分隔符
	public static final String byte_separator = " ";
	//前导字节
	public static final String pre_navigate_byte = "FE";
	//前导字节，两个字符的十六进制编码
	public static final int pre_navigate_byte_hex = 2;
	//帧起始符
	public static final String frame_origin_signal = "68";
	//帧起始符，两个字符的十六进制编码
	public static final int frame_origin_signal_hex = 2;
	//集中器地址域广播地址
	public static final String concentrator_addr_broadcast = "99 99 99 99 99 99";
	//集中器地址域，十二个字符的BCD编码
	public static final int concentrator_addr_bcd = 12;
	//子地址广播(集中器标识)
	public static final String sub_addr_broadcast = "00";
	//子地址，两个字符的十六进制编码
	public static final int sub_addr_hex = 2;
	//第一目标地址本域广播
	public static final String firstTarget_addr_broadcast = "FF";
	//第一目标地址，两个字符的十六进制编码
	public static final int firstTarget_addr_hex = 2;
	//第二目标地址本域广播
	public static final String secondTarget_addr_broadcast = "FF";
	//第二目标地址，两个字符的十六进制编码
	public static final int secondTarget_addr_hex = 2;
	//数据操作代码1：GPRS发出
	public static final String dataOperator_c1_gprsTransmit = "1B";
	//数据操作代码1，两个字符的十六进制编码
	public static final int dataOperator_c1_hex = 2;
	//数据操作代码2：功能未定
	public static final String dataOperator_c2_funcUndecided = "00";
	//数据操作代码2，两个字符的十六进制编码
	public static final int dataOperator_c2_hex = 2;
	//数据接收 - 数据长度，高字节、低字节四个字符的十六进制编码
	public static final int received_dataLength_hex = 4;
	//数据接收 - 数据总包数，两个字符的十六进制编码
	public static final int received_totalFrames_hex = 2;
	//数据接收 - 当前数据包，两个字符的十六进制编码
	public static final int received_currFrameIndex_hex = 2;
/** ------------------------热表数据分类解析控制协议------------------------------ */
	//表数据的字符长度(无空格的固定长度，包含热量表、分配表、温度点)
	public static final int meterData_fixedLength = 90;
	//数据接收 - 热表类型标识位，两个字符的十六进制编码
	public static final int received_distinguishCode_hex = 2;
	//数据接收 - 标识位-分配表数据区间范围：E6(230)及以下的是分配表
	public static final int received_distinguishCode_assignMeterSerial_max = 0xE6;
	//数据接收 - 标识位-温度点编号的区间范围：E7 ~ F0(231 ~ 240)是温度点
	public static final int received_distinguishCode_tempPointSerial_min = 0xE7;
	public static final int received_distinguishCode_tempPointSerial_max = 0xF0;
	//数据接收 - 标识位-热量表数据区间范围：F1(241)及以上为热量表
	public static final int received_distinguishCode_heatMeter_min = 0xF1;
/** ------------------------------分配表数据帧协议------------------------------------ */
	//数据接收 - 分配表表号，两个字符的十六进制编码，转换为三位的十进制字符串(不足补0，说明：分配表表号=集中器号+三位十进制编码)
	public static final int received_am_seriousNum_hex = 2; //等同于热表类型的标识位
	//数据接收 - 前板温度，两个字符的BCD编码
	public static final int received_am_fontTemperature_bcd = 2;
	//系统修正数据 - 前板温度
	public static final String sysrevisable_am_fontTemperature_val = "99";
	//数据接收 - 背板温度，两个字符的BCD编码
	public static final int received_am_backTmperature_bcd = 2;
	//系统修正数据 - 背板温度
	public static final String sysrevisable_am_backTmperature_val = "99";
	//数据接收 - 当前热量或分配表读数，六个字符的BCD编码
	public static final int received_am_readNum_bcd = 6;
	//系统修正数据 - 当前热量或分配表读数
	public static final String sysrevisable_am_readNum_val = "999999";
	//数据接收 - 上传时间，十二个字符的BCD编码
	public static final int received_am_readTime_bcd = 12;
	//系统修正数据 - 上传时间
	public static final String sysrevisable_am_readTime_val = "000000000000";
	//数据接收 - 1月热值，六个字符的BCD编码
	public static final int received_am_oneHeat_bcd = 6;
	//系统修正数据 - 1月热值
	public static final String sysrevisable_am_oneHeat_val = "999999";
	//数据接收 - 2月热值，六个字符的BCD编码
	public static final int received_am_twoHeat_bcd = 6;
	//系统修正数据 - 2月热值
	public static final String sysrevisable_am_twoHeat_val = "999999";
	//数据接收 - 3月热值，六个字符的BCD编码
	public static final int received_am_threeHeat_bcd = 6;
	//系统修正数据 - 3月热值
	public static final String sysrevisable_am_threeHeat_val = "999999";
	//数据接收 - 4月热值，六个字符的BCD编码
	public static final int received_am_fourHeat_bcd = 6;
	//系统修正数据 - 4月热值
	public static final String sysrevisable_am_fourHeat_val = "999999";
	//数据接收 - 5月热值，六个字符的BCD编码
	public static final int received_am_fiveHeat_bcd = 6;
	//系统修正数据 - 5月热值
	public static final String sysrevisable_am_fiveHeat_val = "999999";
	//数据接收 - 10月热值，六个字符的BCD编码
	public static final int received_am_tenHeat_bcd = 6;
	//系统修正数据 - 10月热值
	public static final String sysrevisable_am_tenHeat_val = "999999";
	//数据接收 - 11月热值，六个字符的BCD编码
	public static final int received_am_elevenHeat_bcd = 6;
	//系统修正数据 - 11月热值
	public static final String sysrevisable_am_elevenHeat_val = "999999";
	//数据接收 - 12月热值，六个字符的BCD编码
	public static final int received_am_twelveHeat_bcd = 6;
	//系统修正数据 - 12月热值
	public static final String sysrevisable_am_twelveHeat_val = "999999";
	//数据接收 - 去年热量，六个字符的BCD编码
	public static final int received_am_lastYearHeat_bcd = 6;
	//系统修正数据 - 去年热量
	public static final String sysrevisable_am_lastYearHeat_val = "999999";
	//数据接收 - 抄表时间，十二个字符的BCD编码
	public static final int received_am_recordTime_bcd = 12;
	//系统修正数据 - 抄表时间
	public static final String sysrevisable_am_recordTime_val = "000000000000";
/** ------------------------------热量表数据帧协议------------------------------------ */
	//数据接收 - 热量表表号，八个字符的BCD编码
	public static final int received_hm_meterNo_bcd = 8;
	//数据接收 - 结算日热量，八个字符的BCD编码
	public static final int received_hm_settleAccountHeat_bcd = 8;
	//系统修正数据 - 结算日热量
	public static final String sysrevisable_hm_settleAccountHeat_val = "99999999";
	//数据接收 - 结算日热量单位，两个字符的数字、字符编码
	public static final int received_hm_settleAccountHeatUnit_code = 2;
	//数据接收 - 当前热量或累计热量，八个字符的BCD编码
	public static final int received_hm_sumHeat_bcd = 8;
	//系统修正数据 - 当前热量或累计热量
	public static final String sysrevisable_hm_sumHeat_val = "99999999";
	//数据接收 - 当前热量单位，两个字符的数字、字符编码
	public static final int received_hm_sumHeatUnit_code = 2;
	//数据接收 - 热功率，八个字符的BCD编码
	public static final int received_hm_heatPower_bcd = 8;
	//系统修正数据 - 热功率
	public static final String sysrevisable_hm_heatPower_val = "99999999";
	//数据接收 - 热功率单位，两个字符的数字、字符编码
	public static final int received_hm_heatPowerUnit_code = 2;
	//数据接收 - 瞬时流量，八个字符的BCD编码
	public static final int received_hm_instantFlow_bcd = 8;
	//系统修正数据 - 瞬时流量
	public static final String sysrevisable_hm_instantFlow_val = "99999999";
	//数据接收 - 瞬时流量单位，两个字符的BCD编码
	public static final int received_hm_instantFlowUnit_code = 2;
	//数据接收 - 累计流量，八个字符的BCD编码
	public static final int received_hm_sumFlow_bcd = 8;
	//系统修正数据 - 累计流量
	public static final String sysrevisable_hm_sumFlow_val = "99999999";
	//数据接收 - 累计流量单位，两个字符的BCD编码
	public static final int received_hm_sumFlowUnit_code = 2;
	//数据接收 - 供水温度，四个字符的BCD编码
	public static final int received_hm_supplyTemperature_bcd = 4;
	//系统修正数据 - 供水温度
	public static final String sysrevisable_hm_supplyTemperature_val = "9999";
	//数据接收 - 回水温度，四个字符的BCD编码
	public static final int received_hm_backTemperature_bcd = 4;
	//系统修正数据 - 回水温度
	public static final String sysrevisable_hm_backTemperature_val = "9999";
	//数据接收 - 累计运行时间，六个字符的BCD编码
	public static final int received_hm_runHours_bcd = 6;
	//系统修正数据 - 累计运行时间
	public static final String sysrevisable_hm_runHours_val = "999999";
	//数据接收 - 状态字，四个字符的BCD编码
	public static final int received_hm_stateMark_bcd = 4;
	//系统修正数据 - 状态字
	public static final String sysrevisable_hm_stateMark_val = "9999";
	//数据接收 - 抄表时间，十二个字符的BCD编码
	public static final int received_hm_recordTime_bcd = 12;
	//系统修正数据 - 抄表时间
	public static final String sysrevisable_hm_recordTime_val = "000000000000";
/** ------------------------------温度点数据帧协议------------------------------------ */
	//数据接收 - 温度点编号，两个字符的十六进制编码
	public static final int received_tp_seriousNum_hex = 2;
	//数据接收 - 0点温度，两个字符的BCD编码
	public static final int received_tp_hour0Value_bcd = 2;
	//系统修正数据 - 0点温度
	public static final String sysrevisable_tp_hour0Value_val = "99";
	//数据接收 - 1点温度，两个字符的BCD编码
	public static final int received_tp_hour1Value_bcd = 2;
	//系统修正数据 - 1点温度
	public static final String sysrevisable_tp_hour1Value_val = "99";
	//数据接收 - 2点温度，两个字符的BCD编码
	public static final int received_tp_hour2Value_bcd = 2;
	//系统修正数据 - 2点温度
	public static final String sysrevisable_tp_hour2Value_val = "99";
	//数据接收 - 3点温度，两个字符的BCD编码
	public static final int received_tp_hour3Value_bcd = 2;
	//系统修正数据 - 3点温度
	public static final String sysrevisable_tp_hour3Value_val = "99";
	//数据接收 - 4点温度，两个字符的BCD编码
	public static final int received_tp_hour4Value_bcd = 2;
	//系统修正数据 - 4点温度
	public static final String sysrevisable_tp_hour4Value_val = "99";
	//数据接收 - 5点温度，两个字符的BCD编码
	public static final int received_tp_hour5Value_bcd = 2;
	//系统修正数据 - 5点温度
	public static final String sysrevisable_tp_hour5Value_val = "99";
	//数据接收 - 6点温度，两个字符的BCD编码
	public static final int received_tp_hour6Value_bcd = 2;
	//系统修正数据 - 6点温度
	public static final String sysrevisable_tp_hour6Value_val = "99";
	//数据接收 - 7点温度，两个字符的BCD编码
	public static final int received_tp_hour7Value_bcd = 2;
	//系统修正数据 - 7点温度
	public static final String sysrevisable_tp_hour7Value_val = "99";
	//数据接收 - 8点温度，两个字符的BCD编码
	public static final int received_tp_hour8Value_bcd = 2;
	//系统修正数据 - 8点温度
	public static final String sysrevisable_tp_hour8Value_val = "99";
	//数据接收 - 9点温度，两个字符的BCD编码
	public static final int received_tp_hour9Value_bcd = 2;
	//系统修正数据 - 9点温度
	public static final String sysrevisable_tp_hour9Value_val = "99";
	//数据接收 - 10点温度，两个字符的BCD编码
	public static final int received_tp_hour10Value_bcd = 2;
	//系统修正数据 - 10点温度
	public static final String sysrevisable_tp_hour10Value_val = "99";
	//数据接收 - 11点温度，两个字符的BCD编码
	public static final int received_tp_hour11Value_bcd = 2;
	//系统修正数据 - 11点温度
	public static final String sysrevisable_tp_hour11Value_val = "99";
	//数据接收 - 12点温度，两个字符的BCD编码
	public static final int received_tp_hour12Value_bcd = 2;
	//系统修正数据 - 12点温度
	public static final String sysrevisable_tp_hour12Value_val = "99";
	//数据接收 - 13点温度，两个字符的BCD编码
	public static final int received_tp_hour13Value_bcd = 2;
	//系统修正数据 - 13点温度
	public static final String sysrevisable_tp_hour13Value_val = "99";
	//数据接收 - 14点温度，两个字符的BCD编码
	public static final int received_tp_hour14Value_bcd = 2;
	//系统修正数据 - 14点温度
	public static final String sysrevisable_tp_hour14Value_val = "99";
	//数据接收 - 15点温度，两个字符的BCD编码
	public static final int received_tp_hour15Value_bcd = 2;
	//系统修正数据 - 15点温度
	public static final String sysrevisable_tp_hour15Value_val = "99";
	//数据接收 - 16点温度，两个字符的BCD编码
	public static final int received_tp_hour16Value_bcd = 2;
	//系统修正数据 - 16点温度
	public static final String sysrevisable_tp_hour16Value_val = "99";
	//数据接收 - 17点温度，两个字符的BCD编码
	public static final int received_tp_hour17Value_bcd = 2;
	//系统修正数据 - 17点温度
	public static final String sysrevisable_tp_hour17Value_val = "99";
	//数据接收 - 18点温度，两个字符的BCD编码
	public static final int received_tp_hour18Value_bcd = 2;
	//系统修正数据 - 18点温度
	public static final String sysrevisable_tp_hour18Value_val = "99";
	//数据接收 - 19点温度，两个字符的BCD编码
	public static final int received_tp_hour19Value_bcd = 2;
	//系统修正数据 - 19点温度
	public static final String sysrevisable_tp_hour19Value_val = "99";
	//数据接收 - 20点温度，两个字符的BCD编码
	public static final int received_tp_hour20Value_bcd = 2;
	//系统修正数据 - 20点温度
	public static final String sysrevisable_tp_hour20Value_val = "99";
	//数据接收 - 21点温度，两个字符的BCD编码
	public static final int received_tp_hour21Value_bcd = 2;
	//系统修正数据 - 21点温度
	public static final String sysrevisable_tp_hour21Value_val = "99";
	//数据接收 - 22点温度，两个字符的BCD编码
	public static final int received_tp_hour22Value_bcd = 2;
	//系统修正数据 - 22点温度
	public static final String sysrevisable_tp_hour22Value_val = "99";
	//数据接收 - 23点温度，两个字符的BCD编码
	public static final int received_tp_hour23Value_bcd = 2;
	//系统修正数据 - 23点温度
	public static final String sysrevisable_tp_hour23Value_val = "99";
	//数据接收 - 1、2点温度精度，两个字符的BCD编码
	public static final int received_tp_hour1$2Precision_bcd = 2;
	//系统修正数据 - 1、2点温度精度
	public static final String sysrevisable_tp_hour1$2Precision_val = "99";
	//数据接收 - 3、4点温度精度，两个字符的BCD编码
	public static final int received_tp_hour3$4Precision_bcd = 2;
	//系统修正数据 - 3、4点温度精度
	public static final String sysrevisable_tp_hour3$4Precision_val = "99";
	//数据接收 - 5、6点温度精度，两个字符的BCD编码
	public static final int received_tp_hour5$6Precision_bcd = 2;
	//系统修正数据 - 5、6点温度精度
	public static final String sysrevisable_tp_hour5$6Precision_val = "99";
	//数据接收 - 7、8点温度精度，两个字符的BCD编码
	public static final int received_tp_hour7$8Precision_bcd = 2;
	//系统修正数据 - 7、8点温度精度
	public static final String sysrevisable_tp_hour7$8Precision_val = "99";
	//数据接收 - 9、10点温度精度，两个字符的BCD编码
	public static final int received_tp_hour9$10Precision_bcd = 2;
	//系统修正数据 - 9、10点温度精度
	public static final String sysrevisable_tp_hour9$10Precision_val = "99";
	//数据接收 - 11、12点温度精度，两个字符的BCD编码
	public static final int received_tp_hour11$12Precision_bcd = 2;
	//系统修正数据 - 11、12点温度精度
	public static final String sysrevisable_tp_hour11$12Precision_val = "99";
	//数据接收 - 13、14点温度精度，两个字符的BCD编码
	public static final int received_tp_hour13$14Precision_bcd = 2;
	//系统修正数据 - 13、14点温度精度
	public static final String sysrevisable_tp_hour13$14Precision_val = "99";
	//数据接收 - 15、16点温度精度，两个字符的BCD编码
	public static final int received_tp_hour15$16Precision_bcd = 2;
	//系统修正数据 - 15、16点温度精度
	public static final String sysrevisable_tp_hour15$16Precision_val = "99";
	//数据接收 - 17、18点温度精度，两个字符的BCD编码
	public static final int received_tp_hour17$18Precision_bcd = 2;
	//系统修正数据 - 17、18点温度精度
	public static final String sysrevisable_tp_hour17$18Precision_val = "99";
	//数据接收 - 19、20点温度精度，两个字符的BCD编码
	public static final int received_tp_hour19$20Precision_bcd = 2;
	//系统修正数据 - 19、20点温度精度
	public static final String sysrevisable_tp_hour19$20Precision_val = "99";
	//数据接收 - 21、22点温度精度，两个字符的BCD编码
	public static final int received_tp_hour21$22Precision_bcd = 2;
	//系统修正数据 - 21、22点温度精度
	public static final String sysrevisable_tp_hour21$22Precision_val = "99";
	//数据接收 - 23、0点温度精度，两个字符的BCD编码
	public static final int received_tp_hour23$0Precision_bcd = 2;
	//系统修正数据 - 23、0点温度精度
	public static final String sysrevisable_tp_hour23$0Precision_val = "99";
	//数据接收 - 保留字，4个字符的BCD编码
	public static final int received_tp_reservedInfo_bcd = 4;
	//数据接收 - 抄表时间，十二个字符的BCD编码
	public static final int received_tp_recordTime_bcd = 12;
	//系统修正数据 - 抄表时间
	public static final String sysrevisable_tp_recordTime_val = "000000000000";
/** ---------------------------------数据包协议尾--------------------------------------- */
	//校验和，两个字符的十六进制编码
	public static final int frameVerify_cs_hex = 2;
	//结束符
	public static final String frame_finish_signal = "16";
	//结束符，两个字符的十六进制编码
	public static final int frame_finish_signal_hex = 2;
}
